<?php
declare(strict_types=1);

namespace App\Http\Controllers\Emo;

use App\Http\Controllers\Controller;
use App\Http\Requests\Emo\EmoImageUidValidate;
use App\Library\Response;
use App\Logic\User\Service\Emo\EmoImageService;
use Illuminate\Http\JsonResponse;

class EmoImageController extends Controller
{
    public function index(): JsonResponse
    {
        return Response::success((new EmoImageService())->serviceSelect(request()->all()));
    }

    public function url(EmoImageUidValidate $validate): JsonResponse
    {
        return  Response::success((new EmoImageService())->serviceFind(request()->all()));
    }
}
